Difference between revisions of "Template:In title/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Cpiral
imported>Bkonrad
m (Bkonrad moved page Template:In title2/testcases to Template:In title/testcases without leaving a redirect: oops)
 
(5 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
== {{edit|Template:{{TEMPLATENAME|testcases}}/sandbox|Sandbox version}} ==
 
== {{edit|Template:{{TEMPLATENAME|testcases}}/sandbox|Sandbox version}} ==
 +
How it previews:
 +
{{ {{TEMPLATENAME|testcases}}/sandbox}}
 +
 +
----
 +
 +
 +
=== Bulleted item ===
  
{{ {{TEMPLATENAME|testcases}}/sandbox}}
+
{{#invoke:demoTemplate|in title/sandbox}}
  
{{clear}}
+
{{#invoke:demoTemplate|in title/sandbox| '''label '''}}
  
{{#invoke:demoTemplate|in title/sandbox|page name}}
+
{{#invoke:demoTemplate|in title/sandbox|bullet = 1|"Page name"}}
  
{{#invoke:demoTemplate|in title/sandbox|nobullet = 1|Page name}}
+
{{#invoke:demoTemplate|in title/sandbox|bullet = true|"Page name"}}
  
{{#invoke:demoTemplate|in title/sandbox|Page Name}}
+
{{#invoke:demoTemplate|in title/sandbox|bullet = y|"Page name"}}
  
 +
{{#invoke:demoTemplate|in title/sandbox|bullet = yes|"Page name"}}
  
An inline "{{in title/sandbox | this is as ugly as it gets for a few cases }}" version.
+
=== Inline ===
  
{{in title/sandbox | nobullet = true | this is the ugliest it gets for thousands and thousands of pages}}
+
Pre {{in title/sandbox | bullet = no }} post.
  
== [[Template:{{TEMPLATENAME|testcases}}|Main template]] ==
+
Pre {{in title/sandbox | bullet = false| label test }} post.
  
 +
==  {{edit|Template:{{TEMPLATENAME|testcases}}|Main template [edit] }} ==
 +
Here's how it previews:
 
{{ {{TEMPLATENAME|testcases}} }}
 
{{ {{TEMPLATENAME|testcases}} }}
 +
----
 +
 +
 +
=== Bulleted item ===
 +
 +
{{#invoke:demoTemplate|in title}}
 +
 +
{{#invoke:demoTemplate|in title| '''label '''}}
 +
 +
{{#invoke:demoTemplate|in title|bullet = 1|"Page name"}}
 +
 +
{{#invoke:demoTemplate|in title|bullet = true|"Page name"}}
 +
 +
{{#invoke:demoTemplate|in title|bullet = y|"Page name"}}
  
{{clear}}
+
{{#invoke:demoTemplate|in title|bullet = yes|"Page name"}}
  
{{#invoke:demoTemplate|in title|page name}}
+
=== Inline ===
  
{{#invoke:demoTemplate|in title|Page name}}
+
Pre {{in title | bullet = false}} post.
  
{{#invoke:demoTemplate|in title|Page Name}}
+
Pre {{in title | bullet = no| label test }} post.
  
 +
=== Substituted form ===
 +
pre <!-- Output a <div class= ...> if a bullet is needed (the default), else output a <span class= ...>
 +
--><{{#ifeq: on | {{ yesno-yes | no | yes = on }} | div | span }} class="plainlinks selfreference <!--
 +
If visibility in print is wanted, the bullet or label will not get the HTML "noprint" attribute.
 +
-->{{#ifeq: on | {{ yesno-no | {{{print}}} | yes = on }} | " | noprint" }}><!--
 +
1) used in articles, since it now has "noprint" to disappear in print media
 +
2) used as internal wikilink, since it hides the external-link arrow
 +
-->{{#ifeq: on | {{ yesno-yes | no | yes = on }} || * }}<!--
 +
-->[<!-- brackets that creates the link, no space allowed after it
 +
  -->{{fullurl:Special:Search|search=<!--create the URL-style link to search, with a query |parameter= called "search"
 +
    -->{{urlencode:~"{{PAGENAME}}"<!-- Search. Encode the query for safety with search syntax like tilde ~ character
 +
  -->}}}}<!-- end fullurl and urlencode
 +
--> <!-- Now for the label. It is created by a space
 +
  -->All pages with titles containing ''{{PAGENAME}}''<!--
 +
-->]<!-- closing bracket that creates the link
 +
--></{{#ifeq: on | {{ yesno-yes | no | yes = on }} | div | span }}> post
  
<!--
+
pre <!-- Output a <div class= ...> if a bullet is needed (the default), else output a <span class= ...>
== References ==
+
--><{{#ifeq: on | {{ yesno-yes | yes | yes = on }} | div | span }} class="plainlinks selfreference <!--
{{reflist}}
+
If visibility in print is wanted, the bullet or label will not get the HTML "noprint" attribute.
-->
+
-->{{#ifeq: on | {{ yesno-no | {{{print}}} | yes = on }} | " | noprint" }}><!--
 +
1) used in articles, since it now has "noprint" to disappear in print media
 +
2) used as internal wikilink, since it hides the external-link arrow
 +
-->{{#ifeq: on | {{ yesno-yes | yes | yes = on }} || * }}<!--
 +
-->[<!-- brackets that creates the link, no space allowed after it
 +
  -->{{fullurl:Special:Search|search=<!--create the URL-style link to search, with a query |parameter= called "search"
 +
    -->{{urlencode:~"{{PAGENAME}}"<!-- Search. Encode the query for safety with search syntax like tilde ~ character
 +
  -->}}}}<!-- end fullurl and urlencode
 +
--> <!-- Now for the label. It is created by a space
 +
  -->All pages with titles containing ''{{PAGENAME}}''<!--
 +
-->]<!-- closing bracket that creates the link
 +
--></{{#ifeq: on | {{ yesno-yes | yes | yes = on }} | div | span }}> post

Latest revision as of 01:04, 17 May 2017

Sandbox version

How it previews:



Bulleted item

{{in title/sandbox}}

{{in title/sandbox| '''label '''}}

{{in title/sandbox|"Page name"|bullet=1}}

{{in title/sandbox|"Page name"|bullet=true}}

{{in title/sandbox|"Page name"|bullet=y}}

{{in title/sandbox|"Page name"|bullet=yes}}

Inline

Pre All pages with titles containing In title/testcases post.

Pre All pages with titles containing label test post.

Main template [edit ]

Here's how it previews: All pages with titles containing In title/testcases



Bulleted item

{{in title}}All pages with titles containing In title/testcases

{{in title| '''label '''}}All pages with titles containing label

{{in title|"Page name"|bullet=1}}All pages with titles containing Page name

{{in title|"Page name"|bullet=true}}All pages with titles containing Page name

{{in title|"Page name"|bullet=y}}All pages with titles containing Page name

{{in title|"Page name"|bullet=yes}}All pages with titles containing Page name

Inline

Pre All pages with titles containing In title/testcases post.

Pre All pages with titles containing label test post.

Substituted form

pre

pre

post