Difference between revisions of "Template:Tag2"

From Lunarpedia
Jump to: navigation, search
(Generic Tag template with image. Left-justified. Needs longer example text.)
 
m (4 revisions imported)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly><onlyinclude>
<DIV style="{{DRBX}}; margin:0.5em; padding:1em; line-height:1.25em; font-size:{{{textsize|80%}}}; width:50em; width:25rem;">
+
<DIV style="{{DRBX}}; margin:0.5em; padding:1em; font-size:{{{textsize|80%}}}; width:50em; width:25rem;">
 
{|
 
{|
|[[{{{image|File:Sitelogo}}}|{{{imgsize|80px}}}]]
+
|[[{{{image|File:Sitelogo}}}|{{{imagesize|80px}}}]]
 
|
 
|
 
|{{{text|text}}}
 
|{{{text|text}}}
 
|}
 
|}
</DIV><BR/>
+
</DIV>
 
[[Category:{{{destination|ERROR!  SET DESTINATION!}}}]]
 
[[Category:{{{destination|ERROR!  SET DESTINATION!}}}]]
</includeonly><noinclude>
+
</onlyinclude></includeonly><noinclude>
  
 
Generic tag template.  Use to build standardized tag templates with images.
 
Generic tag template.  Use to build standardized tag templates with images.
Line 16: Line 16:
 
__NOTOC__
 
__NOTOC__
 
==Settings==
 
==Settings==
 +
*destination: The category to put articles tagged with this into
 
*text: the text of the notice.  Include any formatting and line breaks.
 
*text: the text of the notice.  Include any formatting and line breaks.
 
*textsize: the size of the text.  Include units.  Default is 80%.
 
*textsize: the size of the text.  Include units.  Default is 80%.
Line 24: Line 25:
 
===Mostly Defaults===
 
===Mostly Defaults===
 
{{Tag2 |
 
{{Tag2 |
| text = '''L5 in '95!'''
+
| text = "The vast distances that separate the stars are providential. Beings and worlds are quarantined from one another. The quarantine is lifted only for those with sufficient self-knowledge and judgment to have safely traveled from star to star."<BR/ >― Carl Sagan
 +
| destination = Tag Templates
 
}}
 
}}
  
 
<TT><PRE>{{Tag2 |
 
<TT><PRE>{{Tag2 |
| text = '''L5 in '95!'''
+
| text = "The vast distances that separate the stars are providential. Beings and worlds are quarantined from one another. The quarantine is lifted only for those with sufficient self-knowledge and judgment to have safely traveled from star to star."<BR/ >― Carl Sagan
 +
| destination = Articles Tagged with Carl Sagan
 
}}
 
}}
 
</PRE></TT>
 
</PRE></TT>
Line 34: Line 37:
 
===Customized===
 
===Customized===
 
{{Tag2 |
 
{{Tag2 |
| text = <SPAN style = "font-family:fantasy,cursive,serif; color:#FF0000">'''L5 in '95!'''</SPAN>
+
| text = <SPAN style = "font-family:fantasy,cursive,serif; color:#FF0000">"The vast distances that separate the stars are providential. Beings and worlds are quarantined from one another. The quarantine is lifted only for those with sufficient self-knowledge and judgment to have safely traveled from star to star."<BR/ >― Carl Sagan</SPAN>
| textsize = 200%
+
| destination = Tag Templates
 +
| textsize = 120%
 
| image = File:Earth with Moon.jpg
 
| image = File:Earth with Moon.jpg
 
| imagesize = 150px
 
| imagesize = 150px
Line 42: Line 46:
 
<TT><PRE>
 
<TT><PRE>
 
{{Tag2 |
 
{{Tag2 |
| text = <SPAN style = "font-family:fantasy,cursive,serif; color:#FF0000">'''L5 in '95!'''</SPAN>
+
| text = <SPAN style = "font-family:fantasy,cursive,serif; color:#FF0000">"The vast distances that separate the stars are providential. Beings and worlds are quarantined from one another. The quarantine is lifted only for those with sufficient self-knowledge and judgment to have safely traveled from star to star."<BR/ >― Carl Sagan</SPAN>
| textsize = 200%
+
| destination = Articles Tagged with Carl Sagan
 +
| textsize = 120%
 
| image = File:Earth with Moon.jpg
 
| image = File:Earth with Moon.jpg
 
| imagesize = 150px
 
| imagesize = 150px
 
}}
 
}}
 
</PRE></TT>
 
</PRE></TT>
 +
 +
==For Similar Use Cases==
 +
*For no images use [[:Template:Tag1]]
 +
<!--*For one image use [[:Template:Tag2]]-->
 +
*For two images use [[:Template:Tag2-2]]
 +
*For three images use [[:Template:Tag2-3]]
  
 
[[Category:Tag Templates]]
 
[[Category:Tag Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 01:09, 25 April 2019


Generic tag template. Use to build standardized tag templates with images.

Built on top of Template:DRBX


Settings

  • destination: The category to put articles tagged with this into
  • text: the text of the notice. Include any formatting and line breaks.
  • textsize: the size of the text. Include units. Default is 80%.
  • image: the image to use. Default is File:Sitelogo.
  • Imagesize: the image size. Include units. Default is 80px.

Examples

Mostly Defaults

80px "The vast distances that separate the stars are providential. Beings and worlds are quarantined from one another. The quarantine is lifted only for those with sufficient self-knowledge and judgment to have safely traveled from star to star."
― Carl Sagan


{{Tag2 |
| text = "The vast distances that separate the stars are providential. Beings and worlds are quarantined from one another. The quarantine is lifted only for those with sufficient self-knowledge and judgment to have safely traveled from star to star."<BR/ >― Carl Sagan
| destination = Articles Tagged with Carl Sagan
}}

Customized

150px "The vast distances that separate the stars are providential. Beings and worlds are quarantined from one another. The quarantine is lifted only for those with sufficient self-knowledge and judgment to have safely traveled from star to star."
― Carl Sagan


{{Tag2 |
| text = <SPAN style = "font-family:fantasy,cursive,serif; color:#FF0000">"The vast distances that separate the stars are providential. Beings and worlds are quarantined from one another. The quarantine is lifted only for those with sufficient self-knowledge and judgment to have safely traveled from star to star."<BR/ >― Carl Sagan</SPAN>
| destination = Articles Tagged with Carl Sagan
| textsize = 120%
| image = File:Earth with Moon.jpg
| imagesize = 150px
}}

For Similar Use Cases