Template:Ifsandbox/doc: Difference between revisions
Template page
More actions
first version |
|||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
|1 = | |1 = | ||
|1label = when yes | |1label = when yes | ||
|1d-en = text or action when a sandbox<br> | |1d-en = text or action when a sandbox<br /> | ||
* ''or code'' <code>n</code>: text is pagename without < | * ''or code'' <code>n</code>: text is pagename without <code>/sandbox</code> | ||
* ''or code'' <code>doc</code>: uses the documentation of the original page | * ''or code'' <code>doc</code>: uses the documentation of the original page | ||
|1d-td = Wert wenn sandbox | |1d-td = Wert wenn sandbox | ||
| Line 36: | Line 36: | ||
|name ={{BASEPAGENAME}} | |name ={{BASEPAGENAME}} | ||
|desc = | |desc =For differentiation {{Nobold|whether a sandbox page or not}} | ||
|namespace = | |namespace = | ||
|usergroup = | |usergroup = | ||
| Line 46: | Line 46: | ||
|shorthand = | |shorthand = | ||
|setscats = | |setscats = | ||
|seealso = *{{T|Ifsvg}}<br> | |seealso = *{{T|Ifsvg}}<br /> | ||
*{{T|IfNum}}<br> | *{{T|IfNum}}<br /> | ||
*{{T|Iffile}}<br> | *{{T|Iffile}}<br /> | ||
*{{T|Ifsubst}}<br /> | |||
*{{T|Iffileorcategory}} | *{{T|Iffileorcategory}} | ||
|type = | |type = | ||
| Line 60: | Line 61: | ||
The template becomes useful when special actions, as e.g. the {{T0|Protected|protection flag}}, should occur differently from the original or the sandbox page. | The template becomes useful when special actions, as e.g. the {{T0|Protected|protection flag}}, should occur differently from the original or the sandbox page.<br /> | ||
Because there is no namespace for sandboxes, an analyzing of the pagename is necessry. | |||
== Code {{T\|n}} == | == Code {{T\|n}} == | ||
| Line 68: | Line 70: | ||
With <nowiki>{{Documentation|{{ifsandbox|doc}}}}</nowiki> always the original docu is shown, independent whether it is from the original or the sandbox page. | With <nowiki>{{Documentation|{{ifsandbox|doc}}}}</nowiki> always the original docu is shown, independent whether it is from the original or the sandbox page. | ||
== Parameter {{T\|m}} == | |||
With an <code>m</code> greater than the default value <code>1</code>, more titleparts can be removed, e.g. for ''xxxx''/sandbox/en. | |||
== Parameter {{T\|b}} == | |||
With this parameter the variable "{{Wd|Benutzer:Warhog/Sandbox/Variablentest (Klammerzusatz)|PAGENAME}}" can be prefixed; the value is case-insensitive. | |||
<includeonly> | <includeonly> | ||
[[Category:Commons templates]] | |||
</includeonly> | </includeonly> | ||