Difference between revisions of "User:Renegade"

From LGPedia
Jump to: navigation, search
(Added some common tag groups and code snippets so I don't have to reconstruct them on each new template.)
(wth.)
 
(29 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
==Linklist==
 
==Linklist==
 +
<div class="toclimit-2" style="float: right;">__TOC__</div>
 
Just for my personal convenience.
 
Just for my personal convenience.
 
*[[Special:Allpages|All Pages]]
 
*[[Special:Allpages|All Pages]]
Line 14: Line 15:
 
*[[LGPedia:Color Palette|Color Palette]]
 
*[[LGPedia:Color Palette|Color Palette]]
  
==Fonts==
+
==Portal New Vid Template==
Lonelygirl15: [http://www.myfonts.com/fonts/fontbureau/giza/threefive/ Giza ThreeFive]<br>
+
<pre>{{PortalVideoNews
Hymn Of One: [http://www.linotype.com/57322/bickhamscript-family.html Bickham Script]
+
|name        =
 +
|number      =
 +
|image        =
 +
|description  =
 +
|blogger      =
 +
|url          = {{lg15|}}
 +
|forumurl    =
 +
|new          = yes
 +
}}</pre>
  
 +
<div class="NavFrame" style="text-align: left; font-size: 100%; border: none; padding: 0px;">
 +
  <div class="NavHead" style="background-color: transparent; padding-top: 0em; margin-bottom: 0.8em;">
 
==Episode Page Framework==
 
==Episode Page Framework==
 +
</div>
 +
  <div class="NavContent" style="display:none;">
 
<pre>{{Blog
 
<pre>{{Blog
 
| name        = {{PAGENAME}}
 
| name        = {{PAGENAME}}
Line 25: Line 38:
 
| caption    =  
 
| caption    =  
 
| blogger    =  
 
| blogger    =  
| date        = {{subst:CURRENTMONTHNAME}} {{subst:CURRENTDAY}}, {{subst:CURRENTYEAR}}
+
| date        = {{subst:CURRENTYEAR}}{{subst:CURRENTMONTH}}{{subst:CURRENTDAY}}
 
| url        = {{lg15|}}
 
| url        = {{lg15|}}
 
| forumid    =  
 
| forumid    =  
Line 34: Line 47:
  
 
<!-- Production Credits leave blank after "=" if data is not available -->
 
<!-- Production Credits leave blank after "=" if data is not available -->
 
 
 
| execprod    =
 
| execprod    =
 
| coexecprod  =
 
| coexecprod  =
Line 58: Line 69:
 
| music supervisor =
 
| music supervisor =
  
| song =  
+
| song       =
| cast = {{VidChar|}}
+
| cast       = {{VidChar|}}
  
| Previous =  
+
| Previous   =
| Next =  
+
| Next       =  
  
| PreviousB =  
+
| PreviousB   =  
| NextB =  
+
| NextB       =  
| PreviousC =  
+
 
| NextC =  
+
| PreviousC   =  
 +
| NextC       =  
 
}}
 
}}
{{EpHeader|}}
 
  
 
==Transcript==
 
==Transcript==
Line 76: Line 87:
 
==Notes==
 
==Notes==
 
</pre>
 
</pre>
 +
  </div>
 +
</div>
  
==Portal New Vid Template==
+
<div class="NavFrame" style="text-align: left; font-size: 100%; border: none; padding: 0px;">
<pre>{{Vid
+
  <div class="NavHead" style="background-color: transparent; padding-top: 0em; margin-bottom: 0.8em;">
|name        =  
+
|number      =  
+
|image        =
+
|description  =
+
|blogger      =
+
|date        = {{subst:CURRENTMONTHNAME}} {{subst:CURRENTDAY}}, {{subst:CURRENTYEAR}}
+
|url          = {{lg15|}}
+
|forumurl    =
+
|new          = yes
+
}}</pre>
+
 
+
 
==Snippets==
 
==Snippets==
===Common sets of tags===
+
</div>
*'''Primary group:''' <code><nowiki>{{tags|lonelygirl15|lg15|danielbeast|daniel|jonas|jonastko|soccerstar|hymnofone|order}}</nowiki></code>
+
  <div class="NavContent" style="display:none;">
*<code><nowiki>{{tags|lonelygirl15|LG15|daniel|danielbeast|jonas|jonastko|emma|bree|train|serum|trait|positive|negative}}</nowiki></code>
+
*<code><nowiki>{{tags|lonelygirl15|bree|danielbeast|daniel|jonastko|jonas|lg15|hymn|of|one|order}}</nowiki></code>
+
:''Variant:'' <code><nowiki>{{tags|lonelygirl15|lg15|bree|daniel|danielbeast|jonas|jonastko|hymn|of|one|order}}</nowiki></code>
+
*<code><nowiki>{{tags|lonelygirl15|lg15|danielbeast|daniel|jonastko|jonas|soccerstar|hymnofone|theorder|bree}}</nowiki></code>
+
:''Subset:'' <code><nowiki>{{tags|daniel|danielbeast|jonas|jonastko|lg15|lonelygirl15|soccerstar}}</nowiki></code>
+
*<code><nowiki>{{tags|lonelygirl15|lg15|bree|danielbeast|daniel|jonastko|jonas|soccerstar4ever}}</nowiki></code>
+
:''Variant:'' <code><nowiki>{{tags|lonelygirl15|LG15|daniel|danielbeast|jonas|jonastko|soccerstar4ever|bree}}</nowiki></code>
+
*''With Sonia:'' <code><nowiki>{{tags|lonelygirl15|lg15|daniel|beast|jonastko|sonia|order|hymn|of|one}}</nowiki></code>
+
 
+
 
===Generic way to safeguard an expression===
 
===Generic way to safeguard an expression===
 +
:'''''Note:''' I'm leaving this standing for completeness' sake, but recent versions of ParserFunction include <code><nowiki>{{#iferror:expression|error|success}}</nowiki></code>, or, shorter, <code><nowiki>{{#iferror:expression}}</nowiki></code> - the latter of which returns the expression only if it is valid. Once LGPedia's ParserFunctions are updated, this subsection is obsolete.''
 
This code can be used to protect parameters in mathematical templates, to make sure the input is either numerical or a valid expression.
 
This code can be used to protect parameters in mathematical templates, to make sure the input is either numerical or a valid expression.
<pre>{{#ifeq: {{#ifexpr: {{{1}}} |true}} | true | Is expression | Is not an expression}}</pre>
+
<pre>{{#ifeq: {{#ifexpr: {{{1}}} |true|true}} | true | Is expression | Is not an expression}}</pre>
If <nowiki>{{{1}}}</nowiki> is not an expression, ifexpr returns an error, the error unequals "true", and thus the false part of ifeq is executed; otherwise, ifexpr returns true, ifeq determines that "true" == "true", and executes its true part. Only caveat is that the false part is also triggered when the expression itself is false, because no error is generated (as the expression is valid), but "" (non-existent false of ifexpr) unequals "true".
+
This code works by having ifeq determine whether the output of ifexpr is the string "true", and determining the output based on the outcome. ifexpr always returns "true" if <nowiki>{{{1}}}</nowiki> is a valid expression, no matter if said expression itself is true or false. If the expression is ''not'' valid, ifexpr generates an error string, which unequals "true" and thus triggers ifeq's false part.
  
 
===Logical AND, OR, XOR===
 
===Logical AND, OR, XOR===
Line 131: Line 125:
 
*'''Logical XOR:''' <code><nowiki>{{ #ifexpr: {{ #ifeq: {{{1}}} | yes | 1 | 0 }} != {{ #ifeq: {{{2}}} | yes | 1 | 0 }} | TRUE | FALSE }}</nowiki></code>
 
*'''Logical XOR:''' <code><nowiki>{{ #ifexpr: {{ #ifeq: {{{1}}} | yes | 1 | 0 }} != {{ #ifeq: {{{2}}} | yes | 1 | 0 }} | TRUE | FALSE }}</nowiki></code>
 
:Returns TRUE if either <nowiki>{{{1}}}</nowiki> or <nowiki>{{{2}}}</nowiki> but not both are set to "yes".
 
:Returns TRUE if either <nowiki>{{{1}}}</nowiki> or <nowiki>{{{2}}}</nowiki> but not both are set to "yes".
 +
  </div>
 +
</div>
 +
==Fonts==
 +
*Lonelygirl15 (old): [http://www.myfonts.com/fonts/fontbureau/giza/threefive/ Giza ThreeFive]
 +
*Lonelygirl15 (new): [http://www.myfonts.com/fonts/linotype/myriad/ Myriad Pro Bold Italic]
 +
*Hymn Of One: [http://www.linotype.com/57322/bickhamscript-family.html Bickham Script Semibold]
 +
*KateModern: [http://www.myfonts.com/fonts/adobe/orator/slanted-2/ Orator Slanted]
 +
 +
==Stuff broken on the main page==
 +
*[http://www.lg15.com/lonelygirl15/?p=83 Video link of Daniel, Be Careful...] ([[Daniel, Be Careful...|Episode page]])
 +
*[http://www.lg15.com/lonelygirl15/?p=176 Video link of Disclosure: Cassie. We Are "They"] ([[Disclosure: Cassie. We Are "They"|Episode page]])
 +
*"Permanent link to this video" ''always'' links to [http://www.lg15.com/lonelygirl15/?p=307 307] ([[lonelygirl15 Season 1 Recap]])
 +
 +
==List of redesign pages to delete from my userspace==
 +
*[[User:Renegade/Portal:Lonelygirl15]]
 +
*[[User:Renegade/Portal:Lonelygirl15/Character Row/CharBox]]
 +
*[[User:Renegade/Portal:Lonelygirl15/Character Row]]
 +
*[[User:Renegade/Portal:Lonelygirl15/Content]]
 +
*[[User:Renegade/Portal:Lonelygirl15/News]]
 +
*[[User:Renegade/Portal:Lonelygirl15/News/Template]]
  
 +
[[Category:Hardwork Medal recipients|{{PAGENAME}}]]
 +
[[Category:Spam Patrol|{{PAGENAME}}]]
 +
__NOEDITSECTION__
 
<div style="position: absolute; right: 10px;">[[Special:Allmessages|<span style="color: #DDDDDD; font-size: 150%; font-family: serif;">&pi;</span>]] [[MediaWiki:Monobook.css|<span style="color: #DDDDDD;">θέλημα</span>]]</div>
 
<div style="position: absolute; right: 10px;">[[Special:Allmessages|<span style="color: #DDDDDD; font-size: 150%; font-family: serif;">&pi;</span>]] [[MediaWiki:Monobook.css|<span style="color: #DDDDDD;">θέλημα</span>]]</div>

Latest revision as of 11:13, 24 April 2008

Linklist

Just for my personal convenience.

Portal New Vid Template

{{PortalVideoNews
|name         = 
|number       = 
|image        = 
|description  = 
|blogger      = 
|url          = {{lg15|}}
|forumurl     = 
|new          = yes
}}

Fonts

Stuff broken on the main page

List of redesign pages to delete from my userspace