Jump to content
This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

Template:DPL parameter.surrogateexample: Difference between revisions

no edit summary
imported>FrozenPlum
m (I'm having trouble refining this statement, so more iterations, hopefully it's okay now?)
imported>FrozenPlum
No edit summary
 
Line 10:
 
Naming the surrogate/phantom template after its parent, and then adding [[Controlling output volume#Include contents related to templates|a descriptive suffix on the end]], ensures both the parent and surrogate are easily found, and their relationship to each other easily understood. This style of naming them is particularly useful when looking at templates in [[Special:AllPages]] (and selecting the templates drop-down option).
{{note|This surrogate template requires the [[mw:Extension:ParserFunctions|ParserFunctions]] extension, and it requires <code>[[mw:Extension:ParserFunctions|$wgPFEnableStringFunctions]]</code> to be set to "true" (enabled) in order to function correctly; on Miraheze, ParserFunctions is already installed, and the latter setting can be found and enabled in [[meta:ManageWiki|ManageWiki]]. The #sub parser function, used to add the "more..." text in this example, is for demonstration purposes only; it may break ''nowiki'' or other tags (creating undesired results) if it splits a result in the middle of one of thesesuch tags.}}
 
[[Category:Surrogate (phantom) templates]]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.