Difference between revisions of "User:Renegade"

From LGPedia
Jump to: navigation, search
(I'm bored...I'll go to bed.)
 
(wth.)
 
(46 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<div align="center">[[Image:Gemma.jpg]]<br>
+
==Linklist==
'''The eyes...the lips...the accent...how could you hate that?'''</div>
+
<div class="toclimit-2" style="float: right;">__TOC__</div>
 +
Just for my personal convenience.
 +
*[[Special:Allpages|All Pages]]
 +
*[[Special:Newimages|Image Gallery]]
 +
*[[Special:Log|Logs]]
 +
*[[Special:Search|Search]]
 +
*[[Special:Upload|Upload]]
 +
*[[Special:Userlist|User list]]
  
 +
*[[LGPedia:Templates|Templates page]]
 +
*[[:Category:Templates|Template category]]
 +
*[[AphidPedia/Redesign|AphidPedia (redesign)]]
 +
*[[LGPedia:Lucy's Balcony|Balcony]]
 +
*[[LGPedia:Color Palette|Color Palette]]
  
==Creator of such wonderful pages like...==
+
==Portal New Vid Template==
*[[AphidPedia/Redesign]] (ignoring it will not make it go away :P)
+
<pre>{{PortalVideoNews
*[[Template:Aphidblock]]
+
|name        =
*[[Template:AphidPerson]]
+
|number      =
*[[Template:VidExpand]]
+
|image        =
...not to mention [[:Image:Brother sidebar.png]]
+
|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==
 +
</div>
 +
  <div class="NavContent" style="display:none;">
 +
<pre>{{Blog
 +
| name        = {{PAGENAME}}
 +
| number      =
 +
| image      =
 +
| caption    =
 +
| blogger    =
 +
| date        = {{subst:CURRENTYEAR}}{{subst:CURRENTMONTH}}{{subst:CURRENTDAY}}
 +
| url        = {{lg15|}}
 +
| forumid    =
 +
| length      =
 +
| description =
 +
| location    =
 +
| tags        = {{tags|}}
 +
 
 +
<!-- Production Credits leave blank after "=" if data is not available -->
 +
| execprod    =
 +
| coexecprod  =
 +
| assocprod  =
 +
| serprod    =
 +
| producers  =
 +
| lineprod    =
 +
| supprod    =
 +
| directors  =
 +
| camera      =
 +
| vidplay    =
 +
| headwriter  =
 +
| story      =
 +
| editor      =
 +
| pm          =
 +
| ps          =
 +
| pa          =
 +
| pr          =
 +
| ipa        =
 +
| animation  =
 +
| prodserv    =
 +
| music supervisor =
 +
 
 +
| song        =
 +
| cast        = {{VidChar|}}
 +
 
 +
| Previous    =
 +
| Next        =
 +
 
 +
| PreviousB  =
 +
| NextB      =
 +
 
 +
| PreviousC  =
 +
| NextC      =
 +
}}
 +
 
 +
==Transcript==
 +
{{transcript incomplete}}
 +
 
 +
==Notes==
 +
</pre>
 +
  </div>
 +
</div>
 +
 
 +
<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;">
 +
==Snippets==
 +
</div>
 +
  <div class="NavContent" style="display:none;">
 +
===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.
 +
<pre>{{#ifeq: {{#ifexpr: {{{1}}} |true|true}} | true | Is expression | Is not an expression}}</pre>
 +
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===
 +
For the moment, the only way to create logical ANDs, ORs or XORs seems to be nested ifs and ifeqs inside an ifexpr. In this technique, we are outputting 1s and 0s depending on the state of our parameters, and thereby create a normal expression solvable by ifexpr. All examples can be combined, subgroups can be created through parenthesis, and parameter names and control values can be replaced, as long as it happens consistently throughout the entire expression.
 +
 
 +
====Pieces====
 +
*<code><nowiki>{{ #ifeq: {{{1}}} | CONTROL VALUE | 1 | 0 }}</nowiki></code>
 +
*<code><nowiki>{{ #if: {{{1|}}} | 1 | 0 }}</nowiki></code>
 +
*<code><nowiki>{{ #ifexpr: EXPRESSION | TRUE | FALSE }}</nowiki></code>
 +
 
 +
====Test on state====
 +
*'''Logical AND:''' <code><nowiki>{{ #ifexpr: {{ #if: {{{1|}}} | 1 | 0 }} and {{ #if: {{{2|}}} | 1 | 0 }} | TRUE | FALSE }}</nowiki></code>
 +
:Returns TRUE if both <nowiki>{{{1}}}</nowiki> and <nowiki>{{{2}}}</nowiki> are defined.
 +
*'''Logical OR:''' <code><nowiki>{{ #ifexpr: {{ #if: {{{1|}}} | 1 | 0 }} or {{ #if: {{{2|}}} | 1 | 0 }} | TRUE | FALSE }}</nowiki></code>
 +
:Returns TRUE if either <nowiki>{{{1}}}</nowiki> or <nowiki>{{{2}}}</nowiki> or both are defined.
 +
*'''Logical XOR:''' <code><nowiki>{{ #ifexpr: {{ #if: {{{1|}}} | 1 | 0 }} != {{ #if: {{{2|}}} | 1 | 0 }} | TRUE | FALSE }}</nowiki></code>
 +
:Returns TRUE if either <nowiki>{{{1}}}</nowiki> or <nowiki>{{{2}}}</nowiki> but not both are defined.
 +
 
 +
====Test on control value====
 +
In this example, the control value is "yes".
 +
*'''Logical AND:''' <code><nowiki>{{ #ifexpr: {{ #ifeq: {{{1}}} | yes | 1 | 0 }} and {{ #ifeq: {{{2}}} | yes | 1 | 0 }} | TRUE | FALSE }}</nowiki></code>
 +
:Returns TRUE if both <nowiki>{{{1}}}</nowiki> and <nowiki>{{{2}}}</nowiki> are set to "yes".
 +
*'''Logical OR:''' <code><nowiki>{{ #ifexpr: {{ #ifeq: {{{1}}} | yes | 1 | 0 }} or {{ #ifeq: {{{2}}} | yes | 1 | 0 }} | TRUE | FALSE }}</nowiki></code>
 +
:Returns TRUE if either <nowiki>{{{1}}}</nowiki> or <nowiki>{{{2}}}</nowiki> or both are set to "yes".
 +
*'''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".
 +
  </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>

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