Difference between revisions of "Template:Show"

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(Created page with "<includeonly></includeonly><noinclude> ==Usage== Activates preview for template:unlock. Put it at the top of a page to show, what locked text would look like. {{note|Pleas...")
 
Line 1: Line 1:
<includeonly></includeonly><noinclude>
+
<includeonly>{{#vardefine:show|SHOW}}{{note|This page is in preview mode below this note; comp. [[template:show]].}}</includeonly><noinclude>
 
==Usage==
 
==Usage==
 
Activates preview for [[template:unlock]]. Put it at the top of a page to show, what locked text would look like.
 
Activates preview for [[template:unlock]]. Put it at the top of a page to show, what locked text would look like.
 
{{note|Please, use temporarily only! Otherwise the purpose of [[template:unlock]] is undercut!|error}}
 
{{note|Please, use temporarily only! Otherwise the purpose of [[template:unlock]] is undercut!|error}}
 +
==Example==
 +
<pre>{{unlock|{{current}}|Hide under current version; show otherwise|Show under current version; hide otherwise}}</pre> delivers
 +
 +
Without template:show:
 +
 +
<pre>{{unlock|{{current}}|Hide under current version; show otherwise|Show under current version; hide otherwise}}</pre>
 +
 +
Using <nowiki>{{show}}</nowiki>:
 +
 +
{{show}}{{unlock|{{current}}|Hide under current version; show otherwise|Show under current version; hide otherwise}}
 +
  
 
[[category:template]]
 
[[category:template]]
 
</noinclude>
 
</noinclude>

Revision as of 16:08, 13 May 2021

Usage

Activates preview for template:unlock. Put it at the top of a page to show, what locked text would look like.

Rufzeichen.png Please, use temporarily only! Otherwise the purpose of template:unlock is undercut!

Example

{{unlock|{{current}}|Hide under current version; show otherwise|Show under current version; hide otherwise}}

delivers

Without template:show:

{{unlock|{{current}}|Hide under current version; show otherwise|Show under current version; hide otherwise}}

Using {{show}}:


Note.png This page is in preview mode below this note; comp. template:show.

Hide under current version; show otherwise