Template:OCRDocument

From BITPlan Wiki
Jump to navigation Jump to search

This is the template OCRDocument. It belongs to the concept/topic Concept:OCRDocument
You may find examples for the use of this template via the List of OCRDocuments.

Usage

storemode subobject

{{OCRDocument
|name=
|nextpage=
|previouspage=
|page=
|pages=
|id=
|pdfname=
|storemode=subobject
}}

storemode property

{{OCRDocument
|name=
|nextpage=
|previouspage=
|page=
|pages=
|id=
|pdfname=
|storemode=property
}}

storemode none

{{OCRDocument
|name=
|nextpage=
|previouspage=
|page=
|pages=
|id=
|pdfname=
|storemode=none
}}


viewmode tableheader

{{OCRDocument
|name=
|nextpage=
|previouspage=
|page=
|pages=
|id=
|pdfname=
|viewmode=tableheader
}}

viewmode tablerow

{{OCRDocument
|name=
|nextpage=
|previouspage=
|page=
|pages=
|id=
|pdfname=
|viewmode=tablerow
}}

viewmode tablefooter

{{OCRDocument
|name=
|nextpage=
|previouspage=
|page=
|pages=
|id=
|pdfname=
|viewmode=tablefooter
}}

viewmode labelfield

{{OCRDocument
|name=
|nextpage=
|previouspage=
|page=
|pages=
|id=
|pdfname=
|viewmode=labelfield
}}

Source (pretty printed)

{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA OCRDocument<br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?nextpage|}}}|"{{{?nextpage}}}" is nextpage of it <br>|}}
{{#if:{{{?previouspage|}}}|"{{{?previouspage}}}" is previouspage of it <br>|}}
{{#if:{{{?page|}}}|"{{{?page}}}" is page of it <br>|}}
{{#if:{{{?pages|}}}|"{{{?pages}}}" is pages of it <br>|}}
{{#if:{{{?id|}}}|"{{{?id}}}" is id of it <br>|}}
{{#if:{{{?pdfname|}}}|"{{{?pdfname}}}" is pdfname of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=OCRDocument
|OCRDocument name={{{name|}}}
|OCRDocument nextpage={{{nextpage|}}}
|OCRDocument previouspage={{{previouspage|}}}
|OCRDocument page={{{page|}}}
|OCRDocument pages={{{pages|}}}
|OCRDocument id={{{id|}}}
|OCRDocument pdfname={{{pdfname|}}}
}}
|#default={{#set:
|isA=OCRDocument
|OCRDocument name={{{name|}}}
|OCRDocument nextpage={{{nextpage|}}}
|OCRDocument previouspage={{{previouspage|}}}
|OCRDocument page={{{page|}}}
|OCRDocument pages={{{pages|}}}
|OCRDocument id={{{id|}}}
|OCRDocument pdfname={{{pdfname|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|hidden=
|masterdetail=
|tableheader={{{!}} class='wikitable'
!name!!nextpage!!previouspage!!page!!pages!!id!!pdfname
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{nextpage|}}}{{!}}{{!}}{{{previouspage|}}}{{!}}{{!}}{{{page|}}}{{!}}{{!}}{{{pages|}}}{{!}}{{!}}{{{id|}}}{{!}}{{!}}{{{pdfname|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>nextpage={{#if:{{{nextpage|}}}|{{{nextpage|}}}|}}<br>previouspage={{#if:{{{previouspage|}}}|{{{previouspage|}}}|}}<br>page={{#if:{{{page|}}}|{{{page|}}}|}}<br>pages={{#if:{{{pages|}}}|{{{pages|}}}|}}<br>id={{#if:{{{id|}}}|{{{id|}}}|}}<br>pdfname={{#if:{{{pdfname|}}}|{{{pdfname|}}}|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}OCRDocument
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/OCRDocument/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!name
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!nextpage
{{!}}&nbsp;{{#if:{{{nextpage|}}}|{{{nextpage|}}}|}}
{{!}}-
!prevpage
{{!}}&nbsp;{{#if:{{{previouspage|}}}|{{{previouspage|}}}|}}
{{!}}-
!page
{{!}}&nbsp;{{#if:{{{page|}}}|{{{page|}}}|}}
{{!}}-
!pages
{{!}}&nbsp;{{#if:{{{pages|}}}|{{{pages|}}}|}}
{{!}}-
!id
{{!}}&nbsp;{{#if:{{{id|}}}|{{{id|}}}|}}
{{!}}-
!pdfname
{{!}}&nbsp;{{#if:{{{pdfname|}}}|{{{pdfname|}}}|}}
{{!}}-
{{!}}}
}}
}}
[[Category:OCRDocument]]{{#default_form:OCRDocument}}

Source

Click on "Edit" to edit the noinclude-part Source of this Template.