Difference between revisions of "Template"

From No Subject - Encyclopedia of Psychoanalysis
Jump to: navigation, search
 
(The LinkTitles extension automatically added links to existing pages (<a rel="nofollow" class="external free" href="https://github.com/bovender/LinkTitles">https://github.com/bovender/LinkTitles</a>).)
(Tags: Mobile edit, Mobile web edit)
 
(12 intermediate revisions by one other user not shown)
Line 1: Line 1:
==Tip of the day==
+
{| cellpadding="12" style="float: right; width:23em; font-size: 90%"
Get annoyed writing out the same piece of text on multiple pages?  You can create your own template on a sub-page of your user page:
+
|+ style="font-size: larger;"|
* Add the link <nowiki>[[/TemplateName]]</nowiki> (where &quot;TemplateName&quot; is the name of your template) to your user page.
+
|-
 +
!bgcolor="#ffffff" align="center" colspan="2" style="font-size: larg;"|
 +
|}
 +
 
 +
Get annoyed [[writing]] out the same piece of [[text]] on multiple pages?  You can create your own template on a sub-page of your user page:
 +
* Add the link <nowiki>[[/TemplateName]]</nowiki> (where &quot;TemplateName&quot; is the [[name]] of your template) to your user page.
 
* Add the text of your template to this new sub-page.
 
* Add the text of your template to this new sub-page.
* To add the template to a page, you simply have to add this code: <nowiki>{{subst:User:YourUserName/TemplateName}}</nowiki> (substituting your own user name and template page name).
+
* To add the template to a page, you simply have to add this [[code]]:  
  
For example, [[user:Steinsky]] has templates for textbook references:
+
 
* ''<nowiki>{{subst:User:Steinsky/iGenetics}}</nowiki>'' becomes:
+
 
* Russel, P.J., 2003.  ''iGenetics''.  San Francisco: Benjamin Cummins.
+
__NOTOC__ __NOEDITSECTION__
|}
 

Latest revision as of 00:23, 21 May 2019

Get annoyed writing out the same piece of text on multiple pages? You can create your own template on a sub-page of your user page:

  • Add the link [[/TemplateName]] (where "TemplateName" is the name of your template) to your user page.
  • Add the text of your template to this new sub-page.
  • To add the template to a page, you simply have to add this code: