Difference between revisions of "Test"

From Land Forum
Jump to: navigation, search
(Created page with "== User Suggestions == === [http://meta.wikimedia.org/wiki/User:CharlesC User:CharlesC]: Create a Template for PDF Embedding === If you are using mediawiki version 1.12 (works ...")
 
(Replaced content with " test")
Line 1: Line 1:
== User Suggestions ==
+
  test
 
 
=== [http://meta.wikimedia.org/wiki/User:CharlesC User:CharlesC]: Create a Template for PDF Embedding ===
 
 
 
If you are using mediawiki version 1.12 (works only here, because [[Extension:Filepath]] and [[Extension:TagParser]] are needed),
 
it would probably be a good idea to create a template for simple document embedding.
 
#follow [http://meta.wikimedia.org/wiki/User:CharlesC/Template_for_document_links_showing_file_icons#Example:_Creating_template_for_handling_PDF_files Creating template for handling PDF files]
 
#open the page '''Template:Pdf_embed''' in you wiki, edit and insert this code:
 
  <nowiki>
 
<div style="color:#000000; border:solid 1px #A8A8A8; padding:0.0em 0.em 0.0em 0.em; background-color:#FFFFFF;font-size:80%; vertical-align:middle; width:50%">
 
{| width="100%"
 
|align="right" | {{pdf|{{{1}}}|{{{2}}}}}
 
|-
 
| {{#tag:embed_document|{{filepath:{{{1}}}}}|height="450"}}
 
|}
 
</div>
 
</nowiki>
 
 
 
Now you can use this template to add a pretty looking box (width 50%, height 450) with link and embedded PDF file to your wiki pages. And there is '''no need''' to specify the '''full path anymore'''!
 
<nowiki>{{pdf_embed|DOCUMENT TITLE|HYPERLINK TEXT}}</nowiki>
 
<nowiki>{{pdf_embed|Example PDF document.pdf|Example PDF document}}</nowiki>
 
 
 
; Answer
 
 
 
A good idea! However, computing the filename on the server should probably be moved over into the PHP code sometime.
 
 
 
== See Also ==
 
 
 
*[[Extension:EmbedHighlightedCodeFromFile]] -- based on Embed Document :) thx!
 
*[[Extension:Filepath]] -- needed for the template
 
*[[Extension:TagParser]] -- needed for the template
 
*[http://meta.wikimedia.org/wiki/User:CharlesC/Template_for_document_links_showing_file_icons#Example:_Creating_template_for_handling_PDF_files Creating template for handling PDF files] -- needed for the template
 
 
 
[[Category:File system content extensions]]
 
[[Category:Media handling extensions]]
 
[[Category:Document viewer extensions]]
 

Revision as of 20:31, 19 December 2011

test